package com.csun.cmny.provider.model.dto.gateway;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-16 13:31
 * @Description: the class gateway data hi query page
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class GatewayDataHiPageQuery extends BaseQuery {

    private static final long serialVersionUID = -3767314642823494529L;

    /**
     * 设备Id
     */
    private Long deviceId;

    /**
     * 开始日期 yyyy-mm-dd
     */
//    private String startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startQueryTime;

    /**
     * 结束日期 yyyy-mm-dd
     */
//    private String endDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endQueryTime;

    /**
     * 状态 offline - 离线 online - 在线
     */
    private String status;

    /**
     * 网关编号
     */
    private String netgateNo;

    /**
     * 传感器编号
     */
    private String sensorNo;

    /**
     * 消息类型
     */
    private String msgType;

}
